#include "OneWayPlatform.h"


OneWayPlatform::OneWayPlatform(GameState *gameState):PhysicalObject(gameState)
{
	addProperty("onewayplatform");

	getBodyDef()->type = b2_staticBody;
	getBodyDef()->fixedRotation = true;
	b2FixtureDef *fixDef = new b2FixtureDef;
	fixDef->filter.groupIndex = -2;
	b2PolygonShape *shape = new b2PolygonShape;
	shape->SetAsBox(4,0.5);
	fixDef->shape = shape;
	fixDef->density = 2.0f;
	fixDef->restitution = 0.0f;
	addFixtureDef(fixDef);
	setRotation(0.0f);
	setColor(0.3,0.3,0.3);
}


OneWayPlatform::~OneWayPlatform()
{
}
